package nc.ui.arap.selectedpay;

import nc.ui.arap.pubdj.ARAPDjCardPanel;

public class PrintButtonLisener implements ButtonListener {

	@SuppressWarnings("restriction")
	public void action(ButtonEvent1 e) throws Exception {
		
		MainPanel parent = (MainPanel) ((ARAPButton) e.getSource()).getOwner();

		ARAPDjCardPanel panel = parent.selectedpanel;
		
		nc.ui.fi_print.entry.FiPrintEntry printEntry = nc.ui.fi_print.entry.FiPrintEntryFactory
				.createBillCardPanelFiPrintEntry(panel.getBillCardPanelDj());

		String pk_corp = parent.getCurrentCorp();
		String nodeId = parent.getNodeCode();
		String nodekey =  parent.fkd.header.getDjlxbm();
		
		printEntry.printView(pk_corp, nodeId, nodekey);
	}

}
